using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace QuanLyShopCD.GUI
{
    public partial class frm_QL_ChoThue : Form
    {
        BL.bl_ChoThue bl;
        public frm_QL_ChoThue()
        {
            InitializeComponent();
            bl = new BL.bl_ChoThue(this);
            bl.Load_GridView();
            bl.Load_Combobox_MaKH();
            bl.Load_Combobox_MaCD();
            bl.Hienthi();
        }

        private void textBox1_TextChanged(object sender, EventArgs e)
        {

        }

        private void btb_Thoat_Click(object sender, EventArgs e)
        {
            Close();
        }

        private void btb_Them_Click(object sender, EventArgs e)
        {
            bl.Them();
            bl.Load_GridView();
        }

        private void btb_Xoa_Click(object sender, EventArgs e)
        {
            bl.Xoa();
            bl.Load_GridView();
        }

        private void frm_QL_ChoThue_Load(object sender, EventArgs e)
        {

        }

        private void btb_Sua_Click(object sender, EventArgs e)
        {
            bl.Sua();
            bl.Load_GridView();
        }
    }
}